Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.admin.audit.contentView.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.admin.audit.contentView.contrib">

  <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers">

    <genericPageProvider class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider" name="EVENTS_VIEW">
        <whereClause docType="BasicAuditSearch">
          <predicate parameter="log.eventDate" operator="BETWEEN">
            <field schema="basicauditsearch" name="startDate" />
            <field schema="basicauditsearch" name="endDate" />
          </predicate>
          <predicate parameter="log.category" operator="=">
            <field schema="basicauditsearch" name="eventCategory" />
          </predicate>
          <predicate parameter="log.eventId" operator="IN">
            <field schema="basicauditsearch" name="eventIds" />
          </predicate>
          <predicate parameter="log.principalName" operator="=">
            <field schema="basicauditsearch" name="principalName" />
          </predicate>
        </whereClause>
        <sort column="log.eventDate" ascending="false" />
        <pageSize>10</pageSize>
        <maxPageSize>1000</maxPageSize>
      </genericPageProvider>

  </extension>

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="EVENTS_VIEW">

      <title>label.contentview.document.history</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <pageProvider name="EVENTS_VIEW">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">false</property>
      </pageProvider>

      <searchLayout name="fullauditsearch" filterDisplayType="quick" />
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}</cacheKey>

      <resultLayouts>
        <layout name="event_listing" title="history_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showPDFExport="false" />
      </resultLayouts>

    </contentView>

    <contentView name="PERMISSIONS_SEARCH">

      <showTitle>false</showTitle>

      <genericPageProvider class="org.nuxeo.ecm.platform.query.nxql.CoreQueryAndFetchPageProvider">
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <whereClause docType="PermissionsSearch">
          <fixedPart quoteParameters="false" escapeParameters="false"
            statement="SELECT ecm:uuid, dc:title, ecm:acl/*1/principal, ecm:acl/*1/creator, ecm:acl/*1/permission,
              ecm:acl/*1/begin, ecm:acl/*1/end, ecm:acl/*1/status FROM Document">
            ecm:mixinType != 'HiddenInNavigation'
            AND ecm:isCheckedInVersion = 0
            AND SORTED_COLUMN IS NOT NULL
            ?
          </fixedPart>
          <predicate parameter="ecm:acl/*1/principal" operator="IN">
            <field schema="permissions_search" name="ace_username" />
          </predicate>
          <predicate parameter="ecm:acl/*1/creator" operator="IN">
            <field schema="permissions_search" name="ace_creator" />
          </predicate>
          <predicate parameter="ecm:acl/*1/permission" operator="IN">
            <field schema="permissions_search" name="ace_permission" />
          </predicate>
          <predicate parameter="ecm:acl/*1/begin" operator="&lt;=">
            <field schema="permissions_search" name="ace_begin" />
          </predicate>
          <predicate parameter="ecm:acl/*1/end" operator="&gt;=">
            <field schema="permissions_search" name="ace_end" />
          </predicate>
          <predicate parameter="ecm:acl/*1/name" operator="LIKE">
            <field schema="permissions_search" name="ace_acl_name" />
          </predicate>
          <predicate parameter="ecm:ancestorId" operator="IN">
            <field schema="permissions_search" name="ecm_ancestorIds" />
          </predicate>
        </whereClause>
        <parameter>#{adminPermissionsActions.ACEStatusFixedPart}</parameter>
        <pageSize>20</pageSize>
        <sort column="dc:title" ascending="true" />
      </genericPageProvider>

      <searchLayout name="permissions_search_filter" filterDisplayType="default" filterUnfolded="true" />
      <showFilterForm>true</showFilterForm>

      <waitForExecution>true</waitForExecution>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}</cacheKey>

      <resultLayouts>
        <layout name="permissions_search_listing" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" />
      </resultLayouts>

    </contentView>

    <contentView name="PERMISSIONS_PURGE">

      <showTitle>false</showTitle>

      <pageProvider name="permissions_purge">
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <property name="coreSession">#{documentManager}</property>
      </pageProvider>

      <searchLayout name="permissions_purge_filter" filterDisplayType="default" filterUnfolded="true" />
      <showFilterForm>false</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}</cacheKey>

      <resultLayouts>
        <layout name="permissions_search_listing" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" />
      </resultLayouts>

    </contentView>
  </extension>
</component>